package com.itheima.service.impl;

import com.itheima.dao.CommentReportMapper;
import com.itheima.pojo.CommentReport;
import com.itheima.service.CommentReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CommentReportServiceImpl implements CommentReportService {

    @Autowired
    private CommentReportMapper commentReportMapper;

    /**
     * 添加举报
     * @param commentReport
     */
    @Override
    public void add(CommentReport commentReport) {
        commentReportMapper.insertSelective(commentReport);
    }
}
